package cn.bird.storm.validated.paramcheck.model.least;

import cn.bird.storm.validated.paramcheck.inter.ICheckBean;
import cn.hutool.core.util.ObjectUtil;
import lombok.Builder;
import lombok.Data;

import java.util.function.Predicate;

@Data
@Builder
public class LeastOneNotEmptyCheckBean implements ICheckBean<Object> {
    /**
     * 分类组
     */
    private String group;

    private String msg;

    private Object value;


    @Override
    public Predicate<Object> getPassTest() {
        return ObjectUtil::isNotEmpty;
    }
}
